﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="ZL_KH_Query.aspx.cs" Inherits="CoolERP_Web.User.ZL_KH_Query" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../Scripts/Area.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b>客户管理</b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <ul class=tags style="width:95%;">
                <li class=liTitle><div>查询条件</div></li>
            </ul>
            <table class="grvCSS" cellspacing="0" cellpadding=2 border="1" style="width:95%;border-collapse:collapse;">
                <tr>
                    <td>所在地区：<script>var area = new initArea(true, 'hidArea', 'selProvince', "selCity");</script></td>
                    <td>客户编号：<asp:TextBox ID="txtBH" runat="server" CssClass="textbox" MaxLength="20"></asp:TextBox></td>
                    <td>客户名称：<asp:TextBox ID="txtName" runat="server" CssClass="textbox" MaxLength="20"></asp:TextBox></td>
                    <td><asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/Images/Common/btn_query0.png" OnClick="btnQuery_Click" />
                    <asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/Common/btn_reset0.png" OnClick="btnReset_Click" /></td>
                </tr>
            </table>
            <ul class=tags style="width:95%;">
                <li class=liTitle><div>客户列表</div></li>
                <li class=liRight><a href="ZL_KH_Edit.aspx"><img src="../Images/Common/btn_add0.png" border=0 /></a>&nbsp;&nbsp;
                <asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" OnClick="btnDel_Click" OnClientClick="return isCheck('GridView1');" /></li>
            </ul>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>            
            <asp:GridView ID="GridView1" DataKeyNames="ID" runat="server" Width=95% PageSize=20 ClientIDMode=Static CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True">
                <Columns>
                    <asp:TemplateField ShowHeader="False">
                        <HeaderTemplate><label><input type="checkbox" onclick="checkAll('GridView1',this)" />全选</label></HeaderTemplate>
                        <ItemTemplate><input type=checkbox id="chkSel" name="chkSel" runat=server value='<%# Eval("ID") %>' /></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="客户编号" DataField="BH"/>
                    <asp:HyperLinkField HeaderText="客户名称" DataNavigateUrlFields="ID" DataTextField="MC" DataNavigateUrlFormatString="~/User/ZL_KH_Edit.aspx?id={0}" />
                    <asp:BoundField HeaderText="客户简称" DataField="JIANCHENG"/>
                    <asp:BoundField HeaderText="法人代表" DataField="FRDB"/>
                    <asp:BoundField HeaderText="联系人" DataField="LXR"/>
                    <asp:BoundField HeaderText="联系人手机" DataField="LXRSJ"/>
                    <asp:BoundField HeaderText="公司电话" DataField="GSDH"/>
                    <asp:TemplateField HeaderText="所在地区">
                        <ItemTemplate><%# Eval("Region.Name")%> <%# Eval("Region1.Name")%></ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="地址" DataField="DZ"/>
                </Columns>
                <PagerSettings Visible=false />
            </asp:GridView>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
            </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnQuery" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="AspNetPager1" EventName="PageChanged" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
